package com.example.day09d_1;

import java.util.List;

public class P_Main implements CallBack {
    V_Main mV_Main;
    M_Model m_Model;

    public P_Main(V_Main mV_Main) {
        this.mV_Main = mV_Main;
        m_Model=new M_Model();
    }

    @Override
    public void show(List<GetBean.ResultsBean> beanList) {
        mV_Main.showData(beanList);
    }

    @Override
    public void toast(String s) {
        mV_Main.showToast(s);
    }
    public void getData(){
        m_Model.getData(this);
    }
}
